﻿using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace ApiManage.Models.MongoMappings.Project
{
    /// <summary>
    /// 
    /// </summary>
    public class Modules : BaseMongoRecord
    {
        /// <summary>
        /// 
        /// </summary>
        public string ProjectId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string CreateUser { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public List<InterfaceInfo> Interfaces { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class ModulesExtend : Modules
    {
        /// <summary>
        /// 
        /// </summary>
        public new string Id { get; set; }
    }
}
